const mongoose = require('mongoose')

const userSchema = new mongoose.Schema({
    username:{
        type:String,
        maxlength:12,
        required:true
    },
    nickname:{
        type:String,
        maxlength:128,
        required:true
    },
    password:{
        type:String,
        maxlength:128,
        required:true
    }
},{timestamps:true})

mongoose.model('User', userSchema, 'user')